home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 2108 / 2108.xpi / idl / stylishStyle.idl < prev   
Text File  |  2009-05-13  |  2KB  |  52 lines

  1. #include "nsISupports.idl"
  2. #include "nsIClassInfo.idl"
  3. #include "nsIConsoleListener.idl"
  4. #include "nsIObserver.idl"
  5.  
  6. [scriptable, uuid(6af398eb-bc14-4001-b40b-4e830b3863b1)]
  7. interface stylishStyle : nsIClassInfo
  8. {
  9.     attribute unsigned long id;
  10.     attribute AString url;
  11.     attribute AString updateUrl;
  12.     attribute AString md5Url;
  13.     attribute AString name;
  14.     attribute AString code;
  15.     attribute boolean enabled;
  16.     // the original code installed. can be null if it's the same as "code" or this wasn't an install
  17.     attribute AString originalCode;
  18.  
  19.     //see the flags below. you can set this before initing the style
  20.     attribute short mode;
  21.  
  22.     //modes
  23.     attribute short CALCULATE_META;
  24.     attribute short REGISTER_STYLE_ON_CHANGE;
  25.     attribute short REGISTER_STYLE_ON_LOAD;
  26.     attribute short UNREGISTER_STYLE_ON_LOAD;
  27.  
  28.     void list(in short mode, out unsigned long count, [array, size_is(count), retval] out stylishStyle retv);
  29.     stylishStyle find(in unsigned long id, in short mode);
  30.     stylishStyle findByUrl(in AString url, in short mode);
  31.     void findForUrl(in AString url, in boolean includeGlobal, in short mode, out unsigned long count, [array, size_is(count), retval] out stylishStyle retv);
  32.     void findEnabled(in boolean enabled, in short mode, out unsigned long count, [array, size_is(count), retval] out stylishStyle retv);
  33.     void findByMeta(in AString name, in AString value, in short mode, out unsigned long count, [array, size_is(count), retval] out stylishStyle retv);
  34.     void checkForErrors(in AString css, in nsIConsoleListener listener);
  35.     void copyListToClipboard();
  36.  
  37.     void init(in AString url, in AString updateUrl, in AString md5Url, in AString name, in AString code, in boolean enabled, in AString originalCode);
  38.     void save();
  39.     void delete();
  40.     boolean appliesToUrl(in AString url);
  41.     void checkForUpdates();
  42.     void applyUpdate();
  43.     void setPreview(in boolean on);
  44.     void revert();
  45.     void addMeta(in AString name, in AString value);
  46.     void removeMeta(in AString name, in AString value);
  47.     void removeAllMeta(in AString name);
  48.     //XXX this is a string instead of AString. problem?
  49.     void getMeta(in AString name, out unsigned long count, [array, size_is(count), retval] out string retv);
  50.     void getTypes(out unsigned long count, [array, size_is(count), retval] out string retv);
  51. };
  52.